package com.codrim.cs.data.rpc.enums;

import com.codrim.common.utils.enums.EnumWithKey;

/**
 * 时间维度的枚举
 *
 * @author liang.ma 30/11/2017
 */
public enum TimeDimension implements EnumWithKey<String> {
    Hour("hour"),
    Day("day"),
    Week("week"),
    Month("month"),
    Year("year");
    public String key;

    TimeDimension(String key) {
        this.key = key;
    }

    @Override
    public String getKey() {
        return key;
    }
}
